package com.baixun.gasentity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel(description = "报警统计信息，包含各类报警的数量")
public class AlarmStatisticsVO implements Serializable {

    @ApiModelProperty(value = "火焰识别报警数", example = "120")
    private int flameDetectionCount; // 火焰识别报警数

    @ApiModelProperty(value = "烟雾识别报警数", example = "80")
    private int smokeDetectionCount; // 烟雾识别报警数

    @ApiModelProperty(value = "翻墙识别报警数", example = "45")
    private int intrusionDetectionCount; // 翻墙识别报警数

    @ApiModelProperty(value = "未戴安全帽报警数", example = "150")
    private int noHelmetDetectionCount; // 未戴安全帽报警数

    @ApiModelProperty(value = "吸烟识别报警数", example = "60")
    private int smokingDetectionCount; // 吸烟识别报警数

    // 默认构造函数
    public AlarmStatisticsVO() {}

    // 带参构造函数
    public AlarmStatisticsVO(int flameDetectionCount, int smokeDetectionCount, int intrusionDetectionCount,
                             int noHelmetDetectionCount, int smokingDetectionCount) {
        this.flameDetectionCount = flameDetectionCount;
        this.smokeDetectionCount = smokeDetectionCount;
        this.intrusionDetectionCount = intrusionDetectionCount;
        this.noHelmetDetectionCount = noHelmetDetectionCount;
        this.smokingDetectionCount = smokingDetectionCount;
    }
}
